package com.myreminder.data;

import java.util.Date;
import javax.persistence.Id;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;

@Entity
public class Reminder implements IsSerializable {
	@Id Long id;
	public Key<User> user;
	public Date datum;
	public String titel;
	public String description;

	private Reminder(){}
	
	public Reminder(Key<User> user, Date datum, String titel, String description) {
		super();
		this.id = null;
		this.user = user;
		this.datum = datum;
		this.titel = titel;
		this.description = description;
	}

	public Reminder(long id, Key<User> user, Date datum, String titel, String description) {
		super();
		this.id = id;
		this.user = user;
		this.datum = datum;
		this.titel = titel;
		this.description = description;
	}

	
}
